public class Tools {
    private static int count = 20;

    Tools() {
        System.out.println("构造方法被执行了");
    }

    {
        System.out.println("实例代码块");
    }


    static {
        count = 50;
        System.out.println("静态代码块");
    }

    public int getCount() {
        return count;
    }
}
